package org.caiotte.service;


import org.caiotte.domain.Employee;
import org.caiotte.query.EmployeeQuery;
import org.caiotte.util.PageList;

import java.util.List;

public interface IEmployeeService {
    //保存一条记录
    void save(Employee employee);

    //修改一条记录
    void update(Employee employee);

    //删除一条记录
    void removeById(Long id);

    //查询所有
    List<Employee> queryAll();

    //查询一条
    Employee queryById(Long id);

    //分页 +高级
    PageList<Employee> queryPage(EmployeeQuery query);

    //批量删除
    void batchRemove(List<Long> ids);
}
